package com.itheima.service.impl;



import com.itheima.service.FileService;

import com.itheima.utils.MyALiYunOssUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
import java.io.IOException;


@Service
@Primary
public class FileServiceImpl2 implements FileService {
    @Autowired
    private MyALiYunOssUtil myALiYunOssUtil;
    @Override
    public String saveFile(MultipartFile file) throws IOException {
    /*
    */
        String s = myALiYunOssUtil.uploadToOss(file);
        return s;
    }
}
